<template>
  <div style="display: block; height: 100%">
    <header-view></header-view>
    <router-view />
  </div>
</template>

<script>
import headerView from "./components/headerView.vue";
import { getUrlKey } from "../src/server/getUrlcode";
export default {
  mounted() {
     if (getUrlKey("userInfo", window.location.href)) {
       localStorage.setItem('userinfo',getUrlKey("userInfo", window.location.href))
      localStorage.setItem('token',getUrlKey("acctoken", window.location.href))
     
    }
    // 取消开始的loading动画
    const preLoader = document.querySelector("#pre-loader");
    preLoader.style.display = "none";
    document.body.ondrop = (event) => {
      event.preventDefault();
      event.stopPropagation();
    };
  },

  components: {
    headerView,
  },
};
</script>
<style lang="scss">
.home {
  height: calc(100% - 50px);
  width: 100%;
  background: #f5f5f7;
}
.breadcrumb {
  height: 40px;
  display: flex;
  align-items: center;
  .el-breadcrumb__inner.is-link {
    color: rgba(102, 102, 102, 1) !important;
    font-size: 12px;
  }
}
</style>
